function getProcessStateStr(process_state) {
  let processStateStr = "";
  switch (process_state) {
    case 0:
      processStateStr = "待接单";
      break;

    case 1:
      processStateStr = "待回答";
      break;

    case 2:
      processStateStr = "已回答";
      break;
  }
  return processStateStr;
}





function getSimpleParentName(parent_name) {
  let cateName = "";
  switch (parent_name) {
    case "小学科目":
      cateName = "小";
      break;
    case "初中科目":
      cateName = "初";
      break;
  }
  return cateName;
}

function getSimpleChildName(cname) {
  let cateName = "";
  switch (cname) {
    case "语文":
      cateName = "语";
      break;
    case "数学":
      cateName = "数";
      break;
    case "英语":
      cateName = "外";
      break;
    case "物理":
      cateName = "物";
      break;
    case "化学":
      cateName = "化";
      break;
  }
  return cateName;
}

module.exports = {
  getProcessStateStr, //获取处理状态的文字描述
  getSimpleParentName, //获取父级分类的简称
  getSimpleChildName, //获取子分类的简称
}